package com.xjoyt.pay.master.controllers;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.xjoyt.pay.controllers.AbstractController;
import com.xjoyt.pay.dto.PageParam;
import com.xjoyt.pay.dto.PageResult;
import com.xjoyt.pay.master.interfaces.CompanyProfitContract;
import com.xjoyt.pay.master.params.CompanyProfitGroupParam;
import com.xjoyt.pay.master.params.CompanyProfitPageParam;
import com.xjoyt.pay.master.services.CompanyProfitService;
import com.xjoyt.pay.master.vo.CompanyProfitGroup;

@RestController
@RequestMapping("companyProfit")
public class CompanyProfitController extends AbstractController implements CompanyProfitContract {

	@Autowired
	private CompanyProfitService service;

	@Override
	public PageResult<CompanyProfitGroup> loadPageGroup(@RequestBody PageParam<CompanyProfitGroupParam> params) {
		return service.loadPageGroup(params);
	}

	@Override
	public PageResult<com.xjoyt.pay.master.vo.CompanyProfit> loadPageMap(
			@RequestBody PageParam<CompanyProfitPageParam> param) {
		return service.loadPageMap(param);
	}
}
